package com.teach.demo01;

public class Product {

	private Long id;
	private TypeName name;
	private String brand;
	private Double price;
	
	
	
	public Product(TypeName name, String brand, Double price) {
		super();
		this.name = name;
		this.brand = brand;
		this.price = price;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public TypeName getName() {
		return name;
	}
	public void setName(TypeName name) {
		this.name = name;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	@Override
	public String toString() {
		return "\n"+id+"\t" + name.getTypeName() +"\t" + brand +"\t" + price;
	}
	
	
	
	
}
